const express = require("express");
const router = express.Router();

router.get("/user", (req, res) => {
  res.send("user page");
});

router.all("/user", (req, res, next) => {
  console.log("user middleware");
  next();
});

router.get("/user/list", (req, res) => {
  res.send("user list page");
});

router.get("/user/edit", (req, res) => {
  res.send("user edit page");
});

module.exports = router;
